package cn.com.sparkle.paxos;

import cn.com.sparkle.paxos.iomodel.protobuffmessage.PaxosMessages;
import cn.com.sparkle.raptor.core.protocol.protobuf.ProtoBufProtocol;

public class ProtobufProtocolBuilder {
	public static ProtoBufProtocol build() {
		ProtoBufProtocol p = new ProtoBufProtocol();
		p.registerMessage(1, PaxosMessages.MessagePackage.getDefaultInstance());
		p.registerMessage(2,
				PaxosMessages.CustomOnlyConnectMaster.getDefaultInstance());
		return p;
	}
}
